<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>功能树</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link type="text/css" rel="stylesheet" href="../../common/css/formsyle.css"></link>
    <link type="text/css" rel="stylesheet" href="../../common/css/formDetail.css"/>
    <script type="text/javascript" src="../../common/miniuiInit.js"></script>
    <script type="text/javascript" src="../../common/jquery.serializejson.min.js"></script>
    <script type="text/javascript" src="../../common/common.js"></script>
    <script type="text/javascript" src="sysAttachMenu.js"></script>
    <style type="text/css">
        body {
            font-size: 12px;
            font-family: Tahoma, Arial, Helvetica, Sans-serif;
        }

        .tdRight {
            padding-right: 15px;
        }
    </style>

</head>
<body style="margin:0;padding:0px;border:0;width:100%;height:100%;">
<div class="mini-splitter" style="width:100%;height:100%;">
    <div size="250" showCollapseButton="true" style="padding:5px;">
        <table cellSpacing="0" cellPadding="0" style="width:100%;" border="0">
            <tr>
                <td height="30" style="border-bottom: solid 1px #eee;">
                    <img src="../../images/button/addroot.gif" title="新增根节点" onclick="newroot();"/>&nbsp;
                    <img id="newcurnode" src="../../images/button/un_addbrother.gif" title="新增同级点"/>&nbsp;
                    <img id="newchildnode" src="../../images/button/un_addchild.gif" title="新增子节点"/>&nbsp;
                    <img src="../../images/button/un_delete.gif" id="deletefile_item" title="删除当前节点"/>&nbsp;
                    <img src="../../images/button/refresh.gif" id="refresh_folder_item" title="刷新树" onclick="refershTree()"/>
                </td>
            </tr>
        </table>
        <div class="mini-fit" style="width:100%;height:100%;">
            <ul id="tree" class="mini-tree" style="width:100%;height:100%;"
                showTreeIcon="true" textField="menuName" idField="attachMenuId" value="" onNodeclick="treeselected">
            </ul>
        </div>
    </div>
    <div showCollapseButton="true" style="padding:5px;overflow:auto;">
        <!-- 编辑树 -->
        <div id="edit_node" style="height:100%;overflow:auto;">
            <form id="form1">
                <table style="table-layout:fixed;width:100%;" border="0" cellspacing="0" cellPadding="0">
                    <tr style="height:0px;">
                        <td style="width:100px"></td>
                        <td style="width:100%"></td>
                    </tr>
                    <tr height="30">
                        <td colspan="3" style="border-bottom: solid 1px #eee;">
                            <div class="mini-toolbar" style="padding:0px;" id="sBtn">
                                <table style="width:100%;">
                                    <tr>
                                        <td style="width:100%;">
                                            <span>目录详细	</span>
                                        </td>
                                        <td style="white-space:nowrap;">
                                            &nbsp;<a class="mini-button" iconCls="icon-save" plain="true" onclick="saveData">保存</a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr style="display: none">
                        <td>
                            <input id="attachMenuId" class="mini-textbox" name="sysAttachMenu.attachMenuId"/>
                            <input id="parentId" class="mini-textbox" name="sysAttachMenu.parentId"/>
                        </td>
                    </tr>
                    <tr height="30" style="margin-top:2px;">
                        <td style="heigh:30px;">
                            父目录：
                        </td>
                        <td colpsan="2" class="tdRight">
                            <input id="treeSelect" class="mini-treeselect" style="width:500px;" textField="menuName" valueField="attachMenuId" parentField="parentId" onvaluechanged="treeSelectChangge"/>
                        </td>
                    </tr>
                    <tr height="30" style="margin-top:2px;">
                        <td style="heigh:30px;">
                            目录名：
                        </td>
                        <td colpsan="2" class="tdRight">
                            <input id="menuName" class="mini-textbox" name="sysAttachMenu.menuName" required="true" style="width:500px;"/>
                        </td>
                    </tr>
                    <tr style="margin-top:2px;">
                        <td style="heigh:30px;">
                            目录备注：
                        </td>
                        <td colpsan="2" class="tdRight" style="height:65px;">
                            <input class='mini-TextArea' name='sysAttachMenu.menuRemark' id='menuRemark' style="width:500px;height:60px;"/>
                        </td>
                    </tr>
                    <tr height="30" style="margin-top:2px;">
                        <td style="heigh:30px;">
                            顺序：
                        </td>
                        <td colspan="2" class="tdRight">
                            <input id="menuSort" name="sysAttachMenu.menuSort" class="mini-textbox" style="width:500px;" maxlength="8" value="0" required="true" onvaluechanged="CM.validationInt(this.id)"/>
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
</body>
</html>